package com.sf.webside.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 文章表Entity
 *
 * Created by jing.tan on 2018/12/10.
 */
@Entity
@Table(name="cms_article")
public class CmsArticleEntity extends BaseEntity{
//  `category_id` varchar(64) DEFAULT NULL COMMENT '栏目编号',
//            `title` varchar(255) DEFAULT NULL COMMENT '标题',
//            `link` varchar(255) DEFAULT NULL COMMENT '链接',
//            `cover_image` varchar(255) DEFAULT NULL COMMENT '封面图',
//            `keywords` varchar(255) DEFAULT NULL COMMENT '关键字',
//            `description` varchar(255) DEFAULT NULL COMMENT '描述、摘要',
//            `weight` int(11) DEFAULT '0' COMMENT '权重，越大越靠前',
//            `view_config` varchar(64) DEFAULT NULL COMMENT '视图配置',
//            `language_type` char(1) DEFAULT '0' COMMENT '语言类型（0：中文，1：英语）',
//            `issue_date` datetime DEFAULT NULL COMMENT '发布时间',

    private static final long serialVersionUID = 1L;
    private String categoryId;		// 栏目编号
    private String title;		// 标题
    private String link;		// 链接
    private String coverImage;		// 封面图
    private String keywords;		// 关键字
    private String description;		// 描述、摘要
    private String weight;		// 权重，越大越靠前
    private String viewConfig;		// 视图配置
    private String languageType;		// 语言类型（0：中文，1：英语）
    private Date issueDate;		// 发布时间

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getViewConfig() {
        return viewConfig;
    }

    public void setViewConfig(String viewConfig) {
        this.viewConfig = viewConfig;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public String getLanguageType() {
        return languageType;
    }

    public void setLanguageType(String languageType) {
        this.languageType = languageType;
    }
}